package com.kgc.basicprovider.service;

import com.kgc.basic.pojo.Store;
import com.kgc.basic.util.ResponseMsg;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

public interface StoreService {
    //根据条件查询仓库信息
    ResponseMsg getStoreList(Map<String,Object> paramMap);

    //查询所有仓库信息
    ResponseMsg getAllStore();

    //根据id查询仓库信息
    ResponseMsg getStoreById(Integer id);

    //新增仓库信息
    ResponseMsg addStore(Store store);

    //更新仓库信息
    ResponseMsg modifyStore(Store store);

    //删除仓库信息
    ResponseMsg delStore(Integer id);

    //根据code查询仓库信息

    ResponseMsg getStoreByCode(String code);

    //根据name查询仓库信息

    ResponseMsg getStoreByName(String name);
}
